﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GalaSoft.MvvmLight.Messaging;
using GalaSoft.MvvmLight;

namespace Medecine.Interface.Main
{
	public enum ViewName
	{
		Login,
		Home,
		AddUser,
		AddPatient,
		AddObservation,
	}

	public class GoToViewMessage : MessageBase
	{
		public GoToViewMessage(ViewName viewName,
			ViewModelBase viewModel = null, Action callback = null)
			: base(viewName)
		{
			this.ViewName = viewName;
			this.ViewModel = viewModel;
			this.Callback = callback;
		}

		public ViewName ViewName { get; private set; }
		public ViewModelBase ViewModel { get; private set; }
		public Action Callback { get; private set; }
	}
}
